#include "RenderingThread.h"

#include "RenderCommandFence.h"
#include "Runtime/Thread/RenderingThreadContext.h"
#include "Runtime/Thread/Thread.h"
#include "Runtime/Thread/ThreadPool.h"

namespace Alice
{
    
    static RenderingThreadContext* sRenderingThreadContext;
    static CompositedThread sRenderingThread;
    void InitRenderingThread()
    {
        sRenderingThreadContext = new RenderingThreadContext;
        sRenderingThread.bAttached = true;
        sRenderingThread.mThread = Thread::Create("RenderThread", sRenderingThreadContext);
        sRenderingThreadContext->mReadyEvent->Wait();
    }
}
